<?php

if( !isset($_SESSION['login']) || (strcmp($_SESSION['type_compte'],'enseignant') != 0))
{
  echo "<div class='contenu_haut'>.: Erreur Identification :.</div><div class='contenu_fond'>";
  echo "<div class='erreur_div'>Vous devez être identifié</div>";
  echo "</div><div class='contenu_bas'></div>";
}
else
{

?>

<div class="contenu_haut">.: Ajouter un Eleve :.</div><div class="contenu_fond"> <!--  News -->

<div id='erreur_ajout_eleve'></div>
<div id='form_ajout_eleve'>
  <table>
    <tr>
      <td> <h3>Nom : </h3> </td>
      <td> <input type='text' id='nom_eleve' size='20' /> </td>
    </tr>
    <tr>
      <td> <h3>Prenom :</h3> </td>
      <td> <input type='text' id='prenom_eleve' size='20' /> </td>
    </tr>
    <tr>
      <td> <h3>Genre :</h3> </td>
      <td> 
        <select id='genre_eleve' /> 
          <option value='M'>Homme</option>
          <option value='F'>Femme</option>
        </select>
      </td>
    </tr>
    <tr>
      <td> <h3>Classe :</h3> </td> 
      <td> <input type='text' id='classe_eleve' size='4' /> </td>
    </tr>
    </tr>
    <tr>
      <td> <h3>Login :</h3> </td>
      <td> <input type='text' id='login_eleve' size='20' /> </td>
    </tr>
    <tr>
      <td> <h3>Mot de passe :</h3> </td>
      <td> <input type='password' id='mot_de_passe_eleve' size='20' /> </td>
    </tr>
    <tr>
      <td> <h3>Confirmation :</h3> </td>
      <td> <input type='password' id='confirm_passe_eleve' size='20' /> </td>
    </tr>
    <tr>
      <td></td>
      <td><input type='button' value='Ajouter Eleve' onclick='javascript:ajouter_eleve()' /> </td>
    </tr>
  </table>
</div>

</div><div class="contenu_bas"></div><!--  Fin News --> 

<?php
} // Balise de fermeture du check_session
?>
